<?php

class Soul_Template_Html_Grid_Cell_Index extends Soul_Template_Html_Grid_Cell_Base {

    public function __construct(){
        parent::__construct();
        $this->addClass('index')->setStyle('text-align', 'center');
    }

    public function renderChildren() {
        return '<span>'.($this->getGrid()->getRowIndex() + 1).'</span>';
    }
}